package com.dayuanit.dy16.atm.boatm.enums;

import com.dayuanit.dy16.atm.boatm.exception.BizException;

public enum  SalaryDetailStatus {
    wait_pay(1,"待处理"), pay_success(2, "成功");

    private int k;
    private String v;

    public static SalaryDetailStatus find(int k) {
        for (SalaryDetailStatus s : SalaryDetailStatus.values()) {
            if (s.getK() == k) {
                return s;
            }
        }
        throw new BizException("非法状态");
    }

    private SalaryDetailStatus(int k, String v) {
        this.k = k;
        this.v = v;
    }

    public int getK() {
        return k;
    }

    public String getV() {
        return v;
    }
}
